import request from '@/utils/request'

// 查询温度记录数据列表
export function listCentigrade(query) {
  return request({
    url: '/client/centigrade/list',
    method: 'get',
    params: query
  })
}

// 查询温度记录数据详细
export function getCentigrade(id) {
  return request({
    url: '/client/centigrade/' + id,
    method: 'get'
  })
}

// 新增温度记录数据
export function addCentigrade(data) {
  return request({
    url: '/client/centigrade',
    method: 'post',
    data: data
  })
}

// 修改温度记录数据
export function updateCentigrade(data) {
  return request({
    url: '/client/centigrade',
    method: 'put',
    data: data
  })
}

// 删除温度记录数据
export function delCentigrade(id) {
  return request({
    url: '/client/centigrade/' + id,
    method: 'delete'
  })
}

// 导出温度记录数据
export function exportCentigrade(query) {
  return request({
    url: '/client/centigrade/export',
    method: 'get',
    params: query
  })
}

// 下载导入模板
export function importTemplate() {
  return request({
    url: '/client/centigrade/importTemplate',
    method: 'get'
  })
}

